package com.itheima.mArray;

/*
    求特殊和
 */
public class ArrayWork07 {
    public static void main(String[] args) {
        int sum = 0;
        //录入数组
        int[] arr = {68, 27, 95, 88, 171, 996, 51, 210};
        //遍历数组加取值条件
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0 && arr[i] % 10 != 7) {
                if (arr[i] / 10 % 10 != 7) {
                    sum += arr[i];
                }
            }
        }
        System.out.println("特殊和为:" + sum);
    }
}
